<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>图片边框</title>
		<style>
		body{
			background-color: aqua;        
		  }
		    .box1{
				width: 300px;
				height: 160px;
				margin-left: 100px;
				/* border: 50px solid tan; */
				border-width: 50px;
				border-style: double;
				border-image: url(img/bj1.jpg) 50 repeat;
				background: url(img/1.jpg);
				background-size:100% 100%;
				background-repeat: no-repeat;
			}
			.box2{
				width: 300px;
				height: 200px;
				margin-left: 100px;
				border: 30px solid #000;
				border-image: url(img/bj.jpg) 30 round;
				background: url(img/2.png);
				background-size:100% 100%;
				background-repeat: no-repeat;
			}
			.box3{
				width: 100%;
				height: 200px;
				background: linear-gradient(to  bottom red,yellow);
			}
		</style>
	</head>
	<body>
		<div class="box1"></div>
		<div class="box2"></div>
		<div class="box3"></div>
	</body>
</html>
